package stud.mpgame.server.game;

import stud.mpgame.network.MessageDescription;

/**
 * @author f.pavel91@gmail.com
 * @version 1.0
 */
public class LoginMessageDescription extends MessageDescription {

    private static final int ID = 1;

    public static final int LOGIN_MESSAGE_ID = 1;

    public int getID() {
        return ID;
    }

    private static LoginMessageDescription instance = null;

    private LoginMessageDescription() {
        this.registerUserObject(LOGIN_MESSAGE_ID, LoginCommand.class);
    }

    public static LoginMessageDescription getInstance() {
        if(instance == null){
            instance = new LoginMessageDescription();
            MessageDescription.registerDescription(instance);
        }
        return instance;
    }

}
